package org.myspringframework.springboot001.bean;

import lombok.Builder;
import lombok.Data;
import lombok.Singular;

import java.util.List;

/**
 * @author fzy
 * @version 1.0
 * 创建时间：2024-11-26 16:06
 */

@Data
@Builder
public class Person {
    private String name;
    private Integer age;
    private String email;

    @Singular("addPhone")     // 生成addPhone方法，用于添加phone
    private List<String> phones;
}
